package com.sskj.hhrt.verify;

import com.sskj.hhrt.BasePresenter;
import com.sskj.hhrt.api.ApiObserver;
import com.sskj.base.utils.RxUtils;
import com.sskj.hhrt.api.Api;


/**
 * @author Hey
 * Create at  2019/03/20
 */
class Verify1Presenter extends BasePresenter<Verify1Activity> {


    public void verify1(String account, String userName, String idCard, String cardType,String bankNumber,String province,String city,String address) {
        Api.getInstance().verify1("openAccount", account, userName, idCard, cardType,bankNumber,province,city,address)
                .compose(RxUtils.transform())
                .subscribe(new ApiObserver<String>(this, true) {
                    @Override
                    public void onSuccess(String data) {
                        mView.submitSuccess();
                    }
                });
    }

}
